<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>菩提阁</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/pages/user.css">
    <link rel="stylesheet" href="font/iconfont.css">
</head>

<body>
    <div id="user" class="app">
        <div class="divHead">
            <div class="divTitle">
                <i class="iconfont icon-arrow-left"></i>个人中心
            </div>
            <div class="divUser">
                <img src="./images/headPage.png" />
                <div class="desc">
                    <div class="divName">
                        林之迷 <img src="./images/women.png" />
                    </div>
                    <div class="divPhone">13456788765</div>
                </div>
            </div>
        </div>
        <div class="divContent">
            <div class="divLinks">
                <div class="item address">
                    <img src="./images/locations.png" />
                    <span>地址管理</span>
                    <i class="iconfont icon-arrow-right"></i>
                </div>
                <div class="divSplit"></div>
                <div class="item order">
                    <img src="./images/orders.png" />
                    <span>历史订单</span>
                    <i class="iconfont icon-arrow-right"></i>
                </div>
            </div>
            <div class="divOrders">
                <div class="title">最新订单</div>
                <div class="timeStatus">
                    <span>2022-05-29 17:38:39</span> <span>正在派送</span>
                </div>
                <div class="dishList">
                    <div class="item">
                        <span>辣子鸡</span> <span>x3</span>
                    </div>
                    <div class="item">
                        <span>毛氏红烧肉</span> <span>x1</span>
                    </div>
                </div>
                <div class="result">
                    <span>共4 件商品,实付</span>
                    <span class="price">￥302</span>
                </div>
                <!---->
            </div>
            <div class="quitLogin">退出登录</div>
        </div>
    </div>
    <script src="./lib/template-web.js"></script>
    <script type="text/html" id="hlq_tpl">

        <div class="title">最新订单</div>
        <div class="timeStatus">
            <span>{{records[0].checkoutTime}}</span> <span>{{records[0].status | dateFormat }}</span>
        </div>
        <div class="dishList">
            {{each records[0].orderDetails}}
            <div class="item">
                <span>{{$value.name}}</span> <span>{{$value.number}}</span>
            </div>
            {{/each}}
        </div>
        <div class="result">
            <span>共{{records[0].orderDetails | sum}} 件商品,实付￥</span>
            <span class="price">{{records[0].amount}}</span>
        </div>

    </script>
    <script src="./lib/jquery.js"></script>
    <script src="./user.js"></script>
</body>

</html>